package cn.tedu.store.entity;

import java.util.Date;

public class Order extends BaseEntity {
	
	/**
	 * 订单实体类
	 */
	private static final long serialVersionUID = 1L;
	private Integer oid;
	private Integer uid;
	private String recv_name;
	private String recv_phone;
	private String recv_address;
	private long total_price;
	private Integer state;
	private Date order_time;
	private Date pay_time;
	public Integer getOid() {
		return oid;
	}
	public void setOid(Integer oid) {
		this.oid = oid;
	}
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	public String getRecv_name() {
		return recv_name;
	}
	public void setRecv_name(String recv_name) {
		this.recv_name = recv_name;
	}
	public String getRecv_phone() {
		return recv_phone;
	}
	public void setRecv_phone(String recv_phone) {
		this.recv_phone = recv_phone;
	}
	public String getRecv_address() {
		return recv_address;
	}
	public void setRecv_address(String recv_address) {
		this.recv_address = recv_address;
	}
	public long getTotal_price() {
		return total_price;
	}
	public void setTotal_price(long total_price) {
		this.total_price = total_price;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public Date getOrder_time() {
		return order_time;
	}
	public void setOrder_time(Date order_time) {
		this.order_time = order_time;
	}
	public Date getPay_time() {
		return pay_time;
	}
	public void setPay_time(Date pay_time) {
		this.pay_time = pay_time;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((oid == null) ? 0 : oid.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Order other = (Order) obj;
		if (oid == null) {
			if (other.oid != null)
				return false;
		} else if (!oid.equals(other.oid))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Order [oid=" + oid + ", uid=" + uid + ", recv_name=" + recv_name + ", recv_phone=" + recv_phone
				+ ", recv_address=" + recv_address + ", total_price=" + total_price + ", state=" + state
				+ ", order_time=" + order_time + ", pay_time=" + pay_time + "]";
	}
	

}
